package hutool.ip;

import cn.hutool.core.net.NetUtil;

import java.net.InetAddress;

public class LocalIP {

    public static void main(String[] args) {
        InetAddress address = NetUtil.getLocalhost();
        System.out.println(address);

        String macAddress = NetUtil.getLocalMacAddress();
        System.out.println(macAddress);
    }
}
